<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>和平精英插件帮助</title>
    <style>
        * { 
            margin: 0; 
            padding: 0; 
            box-sizing: border-box; 
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            min-height: 100vh;
            padding: 20px;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
            backdrop-filter: blur(10px);
            color: white;
            padding: 40px 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: float 8s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-30px) rotate(180deg); }
        }

        .header h1 { 
            font-size: 2.8rem; 
            font-weight: 800; 
            margin-bottom: 12px; 
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .header p { 
            font-size: 1.1rem; 
            opacity: 0.9; 
            position: relative;
            z-index: 1;
            font-weight: 300;
        }

        .content { 
            padding: 30px; 
            background: rgba(255, 255, 255, 0.05);
        }

        .section {
            margin-bottom: 24px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .section:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        }

        .section-header {
            padding: 20px 24px;
            background: rgba(255, 255, 255, 0.1);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-header:hover { 
            background: rgba(255, 255, 255, 0.15); 
        }

        .section-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: white;
            display: flex;
            align-items: center;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .section-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            color: white;
            font-size: 1.2rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .toggle-icon {
            font-size: 1.4rem;
            transition: transform 0.3s ease;
            color: rgba(255, 255, 255, 0.8);
        }

        .section-content {
            padding: 0 24px;
            max-height: 0;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .section-content.expanded {
            padding: 24px;
            max-height: 2000px;
        }

        .command-grid {
            display: grid;
            gap: 16px;
        }

        .command-grid.cols-2 {
            grid-template-columns: repeat(2, 1fr);
        }

        .command-grid.cols-3 {
            grid-template-columns: repeat(3, 1fr);
        }

        .command-grid.cols-4 {
            grid-template-columns: repeat(4, 1fr);
        }

        .command-item {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .command-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .command-item:hover::before {
            opacity: 1;
        }

        .command-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .command {
            font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .description {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.95rem;
            line-height: 1.6;
            font-weight: 400;
        }

        .example {
            background: rgba(255, 193, 7, 0.3);
            border-left: 4px solid #ffc107;
            padding: 12px 16px;
            margin-top: 12px;
            border-radius: 0 8px 8px 0;
            font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
            font-size: 0.85rem;
            color: #fff3cd;
            backdrop-filter: blur(5px);
            box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
        }

        .tip {
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 24px;
            margin-top: 24px;
            border: 1px solid rgba(255, 193, 7, 0.3);
            position: relative;
            overflow: hidden;
        }

        .tip::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(135deg, #ffc107, #ff9800);
        }

        .tip-title {
            font-weight: 700;
            color: white;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            font-size: 1.1rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .tip-icon { 
            margin-right: 12px; 
            font-size: 1.3rem;
        }

        .tip-content {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.95rem;
            line-height: 1.6;
            font-weight: 400;
        }#

        @media (max-width: 768px) {
            .container { 
                margin: 10px; 
                border-radius: 20px;
            }
            
            .header { 
                padding: 30px 20px; 
            }
            
            .header h1 {
                font-size: 2.2rem;
            }
            
            .content { 
                padding: 20px; 
            }
            
            .command-grid { 
                grid-template-columns: 1fr !important; 
            }
            
            .command-grid.cols-2,
            .command-grid.cols-3,
            .command-grid.cols-4 {
                grid-template-columns: 1fr !important;
            }
            
            .section-header {
                padding: 16px 20px;
            }
            
            .section-content.expanded {
                padding: 20px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            .header h1 {
                font-size: 1.8rem;
            }
            
            .section-icon {
                width: 32px;
                height: 32px;
                font-size: 1rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🎮 和平精英插件</h1>
            <p>功能强大、界面精美的游戏数据查询工具</p>
        </div>
        
        <div class="content">
            <!-- 基础功能 -->
            <div class="section">
                <div class="section-header" onclick="toggleSection(this)">
                    <div class="section-title">
                        <div class="section-icon">📋</div>
                        基础功能
                    </div>
                    <span class="toggle-icon">▼</span>
                </div>
                <div class="section-content">
                    <div class="command-grid">
                        <div class="command-item">
                            <div class="command">#和平帮助</div>
                            <div class="description">显示插件帮助菜单</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#和平插件帮助</div>
                            <div class="description">显示详细帮助信息</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 账号管理 -->
            <div class="section">
                <div class="section-header" onclick="toggleSection(this)">
                    <div class="section-title">
                        <div class="section-icon">👤</div>
                        账号管理
                    </div>
                    <span class="toggle-icon">▼</span>
                </div>
                <div class="section-content">
                    <div class="command-grid">
                        <div class="command-item">
                            <div class="command">#我的和平ID</div>
                            <div class="description">查看已绑定的账号列表</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#绑定和平 &lt;营地ID&gt;</div>
                            <div class="description">绑定新的营地账号</div>
                            <div class="example">示例：#绑定和平 123456789</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#切换和平 &lt;序号&gt;</div>
                            <div class="description">切换当前使用的账号</div>
                            <div class="example">示例：#切换和平 1</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#删除和平 &lt;序号&gt;</div>
                            <div class="description">删除指定的账号</div>
                            <div class="example">示例：#删除和平 1</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 数据查询 -->
            <div class="section">
                <div class="section-header" onclick="toggleSection(this)">
                    <div class="section-title">
                        <div class="section-icon">📊</div>
                        数据查询
                    </div>
                    <span class="toggle-icon">▼</span>
                </div>
                <div class="section-content">
                    <div class="command-grid">
                        <div class="command-item">
                            <div class="command">#和平主页</div>
                            <div class="description">查看个人主页数据（使用当前绑定账号）</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#和平主页&lt;营地ID&gt;</div>
                            <div class="description">查看指定账号的个人主页</div>
                            <div class="example">示例：#和平主页123456789</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#枪械熟练度</div>
                            <div class="description">查看所有枪械的熟练度数据</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#枪械熟练度 &lt;武器类型&gt;</div>
                            <div class="description">按类型筛选查看枪械数据</div>
                            <div class="example">示例：#枪械熟练度 突击步枪</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#和平资讯</div>
                            <div class="description">查看资讯列表</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#和平资讯&lt;编号&gt;</div>
                            <div class="description">查看对应编号的资讯详情</div>
                            <div class="example">示例：#和平资讯5</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 偏好设置 -->
            <div class="section">
                <div class="section-header" onclick="toggleSection(this)">
                    <div class="section-title">
                        <div class="section-icon">⚙️</div>
                        偏好设置
                    </div>
                    <span class="toggle-icon">▼</span>
                </div>
                <div class="section-content">
                    <div class="command-grid">
                        <div class="command-item">
                            <div class="command">#查看对局索引</div>
                            <div class="description">查看当前默认对局展示索引</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#设置对局索引 &lt;0-12&gt;</div>
                            <div class="description">设置默认对局展示索引</div>
                            <div class="example">示例：#设置对局索引 0</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#对局索引帮助</div>
                            <div class="description">查看索引与模式对应关系</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 插件更新 -->
            <div class="section">
                <div class="section-header" onclick="toggleSection(this)">
                    <div class="section-title">
                        <div class="section-icon">🔄</div>
                        插件更新（仅主人）
                    </div>
                    <span class="toggle-icon">▼</span>
                </div>
                <div class="section-content">
                    <div class="command-grid">
                        <div class="command-item">
                            <div class="command">#和平插件更新</div>
                            <div class="description">更新插件到最新版本</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#和平插件强制更新</div>
                            <div class="description">强制更新插件</div>
                        </div>
                        <div class="command-item">
                            <div class="command">#和平插件更新日志</div>
                            <div class="description">查看插件更新日志</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 使用提示 -->
            <div class="tip">
                <div class="tip-title">
                    <span class="tip-icon">💡</span>
                    使用提示
                </div>
                <div class="tip-content">
                    请先使用 <strong>#绑定和平&lt;营地ID&gt;</strong> 绑定你的账号，再使用其它查询指令。支持绑定多个账号，可以随时切换使用。
                </div>
            </div>
        </div>
    </div>

    <script>
        function toggleSection(header) {
            const content = header.nextElementSibling;
            const icon = header.querySelector('.toggle-icon');
            
            if (content.classList.contains('expanded')) {
                content.classList.remove('expanded');
                content.classList.add('collapsed');
                icon.textContent = '▶';
            } else {
                content.classList.remove('collapsed');
                content.classList.add('expanded');
                icon.textContent = '▼';
            }
        }

        // 默认展开所有section并随机设置列数
        document.addEventListener('DOMContentLoaded', function() {
            const sections = document.querySelectorAll('.section');
            sections.forEach(section => {
                const header = section.querySelector('.section-header');
                toggleSection(header);
                
                // 随机设置2-4列布局
                const commandGrid = section.querySelector('.command-grid');
                if (commandGrid) {
                    const randomCols = Math.floor(Math.random() * 3) + 2; // 2, 3, 或 4
                    commandGrid.classList.add(`cols-${randomCols}`);
                }
            });
        });
    </script>
</body>
</html>
